package com.BGR.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.BGR.entity.UpUser;
import lombok.extern.slf4j.Slf4j;
import com.BGR.mapper.UpUserMapper;
import org.springframework.stereotype.Service;
import com.BGR.service.UpUserService;

import java.util.List;

@Service
@Slf4j
public class UpUserServiceImpl extends ServiceImpl<UpUserMapper, UpUser> implements UpUserService {

    @Override
    public void saveUser(UpUser upUser) {
        this.save(upUser);
    }

    @Override
    public void delUser(Long[] ids) {
        this.removeById(ids);
    }

    @Override
    public void updateUser(UpUser upUser) {
        this.updateById(upUser);
    }

    @Override
    public List<UpUser> selectUser() {
        return this.lambdaQuery().list();
    }
}
